<template>
  <view class="page-container">
    <!-- 头部标题 -->
    

    <!-- 主要内容卡片 -->
    <view class="main-card">
      <!-- 状态图标部分 -->
      <view class="status-section success">
        <view class="float-icon">
          <view class="icon-container success">
            <van-icon name="passed" size="48px" color="#fff" />
          </view>
        </view>
        <view class="status-title">入驻申请已通过审核</view>
        <view class="status-desc">恭喜您的申请已通过审核，欢迎加入我们</view>
      </view>

      <!-- 成功详情 -->
      <view class="content-section">
        <!-- 欢迎信息 -->
        <view class="welcome-section">
          <view class="section-title">
            <view class="title-icon green">
              <van-icon name="smile" color="#10b981" size="20px" />
            </view>
            <text>欢迎加入平台</text>
          </view>
          
          <view class="welcome-content">
            <view class="welcome-text">
              <view>您的专业资质和丰富经验已通过我们的审核</view>
              <view>现在您可以开始使用平台提供的各项服务</view>
            </view>
            <view class="welcome-image">
              <van-icon name="certificate" size="48px" color="#10b981" />
            </view>
          </view>
        </view>

        <!-- 下一步信息 -->
        <view class="next-steps">
          <view class="section-title">
            <view class="title-icon blue">
              <van-icon name="setting" color="#3b82f6" size="16px" />
            </view>
            <text>接下来您可以</text>
          </view>
          
          <view class="steps-list">
            <view class="step-item">
              <view class="step-icon">
                <van-icon name="setting" color="#3b82f6" size="16px" />
              </view>
              <text>完善个人资料，让更多人了解您</text>
            </view>
            <view class="step-item">
              <view class="step-icon">
                <van-icon name="setting" color="#3b82f6" size="16px" />
              </view>
              <text>设置您的服务项目和收费标准</text>
            </view>
            <view class="step-item">
              <view class="step-icon">
                <van-icon name="setting" color="#3b82f6" size="16px" />
              </view>
              <text>开始接收订单并提供服务</text>
            </view>
          </view>
        </view>
      </view>
    </view>

    <!-- 审核流程说明 -->
    <view class="process-card">
      <view class="process-title">审核流程说明</view>
      
      <view class="timeline-container">
        <view class="timeline">
          <view class="timeline-item">
            <view class="timeline-icon">
              <van-icon name="upgrade" color="#3b82f6" size="20px" />
            </view>
            <view class="timeline-text">提交申请</view>
          </view>
          
          <view class="timeline-connector"></view>
          
          <view class="timeline-item">
            <view class="timeline-icon">
              <van-icon name="search" color="#3b82f6" size="20px" />
            </view>
            <view class="timeline-text">初步审核</view>
          </view>
          
          <view class="timeline-connector"></view>
          
          <view class="timeline-item">
            <view class="timeline-icon">
              <van-icon name="todo-list" color="#3b82f6" size="20px" />
            </view>
            <view class="timeline-text">详细审核</view>
          </view>
          
          <view class="timeline-connector"></view>
          
          <view class="timeline-item">
            <view class="timeline-icon success">
              <van-icon name="passed" color="#10b981" size="20px" />
            </view>
            <view class="timeline-text">审核通过</view>
          </view>
        </view>
      </view>
      
      <view class="process-desc">
        <view>您的申请在3个工作日内完成了审核</view>
        <view>现在您可以开始使用平台所有功能</view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      // 可以在这里添加数据
    }
  }
}
</script>

<style lang="scss">
/* 全局样式 */
page {
  background-color: #f9fafb;
  padding: 16px;
  box-sizing: border-box;
}

/* 动画效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.float-icon {
  animation: float 2s ease-in-out infinite;
}

/* 页面容器 */
.page-container {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
}

/* 头部标题 */
.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 15px;

  .title {
    font-size: 22px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
  }
}

/* 主卡片样式 */
.main-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 状态部分 - 成功 */
.status-section.success {
  background: linear-gradient(to right, #ecfdf5, #d1fae5);
  padding: 30px 20px;
  text-align: center;
}

.icon-container.success {
  background: linear-gradient(to bottom right, #10b981, #34d399);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.status-title {
  font-size: 18px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.status-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  padding: 0 20px;
}

/* 内容部分 */
.content-section {
  padding: 20px;
}

/* 部分标题 */
.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  line-height: 1.5;

  .title-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .green {
    background-color: #d1fae5;
  }

  .blue {
    background-color: #dbeafe;
  }
}

/* 欢迎部分 */
.welcome-content {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;

  .welcome-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;

    view {
      margin-bottom: 8px;
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .welcome-image {
    text-align: center;
    margin-top: 10px;
  }
}

/* 下一步步骤 */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 5px;
}

.step-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;

  .step-icon {
    width: 24px;
    height: 24px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
  }
}

/* 流程卡片 */
.process-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.process-title {
  font-size: 16px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.5;
}

.timeline-container {
  margin-bottom: 16px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-icon {
  width: 36px;
  height: 36px;
  background-color: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;

  &.success {
    background-color: #d1fae5;
  }
}

.timeline-text {
  font-size: 12px;
  font-weight: 500;
  color: #1f2937;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.timeline-connector {
  height: 2px;
  background-color: #bfdbfe;
  flex: 1;
  margin: 0 2px;
  position: relative;
  top: -18px;
}

.process-desc {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  padding: 0 10px;

  view {
    margin-bottom: 6px;
    &:last-child {
      margin-bottom: 0;
    }
  }
}

/* 响应式调整 */
@media (min-width: 375px) {
  .icon-container.success {
    width: 120px;
    height: 120px;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 414px) {
  .header .title {
    font-size: 24px;
  }

  .status-title {
    font-size: 20px;
  }

  .welcome-content {
    flex-direction: row;
    align-items: center;

    .welcome-text {
      margin-bottom: 0;
      padding-right: 15px;
    }

    .welcome-image {
      margin-top: 0;
      flex-shrink: 0;
    }
  }
}
</style>